package org.nfIt.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.nfIt.entity.product.Category;

import java.util.List;

/**
 * ClossName:CategoryMapper
 * Pakage:org.nfIt.mapper
 * Description
 *
 * @Author L
 * @Create 2024/7/19 22:11
 * @Version 2023.1.3
 */
@Mapper
public interface CategoryMapper {
    /**
     * 根据parentId获取下级节点
     * @param parentId
     */
    List<Category> selectByParentId(Long parentId);

    int countByParentId(Long id);
}
